/*
 * Created on 21-lug-2005
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package it.unibo.deis.lia.filters;

import java.util.Vector;

public class Identity implements IFilter{
	public IFilter genFilter(){
		return new Identity();
	}
	public Double nextValue(Vector<Double> valueSet){//, double costante){
		//System.out.println("IdentityFilter.nextValue valori "+valori);
		if(valueSet.size()==0)return null;
		else if(valueSet.lastElement()==null)return null;
		else return valueSet.lastElement();
	}
}
